#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/6/30 12:21
# @Author : 闫峰
# @File    : urls.py
from flask import Blueprint

from flask_service.area_ap_manager.views.views import v1_db,v1_aapmgr,v1_config,v1_status

"""
area_ap_manager api路由配置
"""
area_ap_manager_bp = Blueprint('area_ap_manager', __name__)

area_ap_manager_bp.add_url_rule('/v1/aapmgr/<path:path>',
                        view_func=v1_aapmgr,
                        methods=['POST','PUT','DELETE','GET'])

area_ap_manager_bp.add_url_rule('/v1/status/<path:path>',
                        view_func=v1_status,
                        methods=['POST','PUT','DELETE','GET'])

area_ap_manager_bp.add_url_rule('/v1/config/<path:path>',
                        view_func=v1_config,
                        methods=['POST','PUT','DELETE','GET'])

area_ap_manager_bp.add_url_rule('/v1/db/<path:path>',
                        view_func=v1_db,
                        methods=['POST','PUT','DELETE','GET'])